<?php echo form_button(array('id'=>'add-extrasoption', 'onClick'=>'openExtrasoptionsPopup()','name'=>'add', 'class'=>'btn blue', 'value'=>lang('escort_extrasoption_add_extrasoption'), 'content'=>lang('escort_extrasoption_add_extrasoption')))?>
<section class="item">
<?php
	if($extrasoptionList){
?>
		<table class="table-list">
			<tr>
				<th><?php echo lang('escort_extrasoption_id')?></th>
				<th><span><?php echo lang('escort_extrasoption_name')?></span></th>
				<th class="actions"><?php echo lang('escort_extrasoption_actions')?></th>
			</tr>
			
	<?php
		foreach ($extrasoptionList as $extrasoption){ 
	?>
			<tr>
				<td>
					<?php echo $extrasoption->id ?>
				</td>
				<td class="collapse">
					<?php echo $extrasoption->extras ?>
				</td>
				<td class="actions">
				<a class="button edit" onclick="return editExtrasoption('<?php echo $extrasoption->code ?>')" href="#"><?php echo lang('escort_extrasoption_edit_extrasoption')?></a>
				<a class="button delete" onclick="return deleteExtrasoption('<?php echo $extrasoption->code ?>', '<?php echo lang('escort_extrasoption_delete_confirm')?>')" href="#"><?php echo lang('escort_extrasoption_delete_extrasoption')?></a>
				</td>
			</tr>
	<?php
		}
	?>
		</table>
<?php
	}else{ 
?>
	<p>
		<?php echo lang('escort_extrasoption_no_extrasoption')?>
	</p>
<?php
	} 
?>
</section>
<div id="basic-modal-content-extrasoption">
	<div class="popup-body extrasoption-popup">
		<section class="title">
			<h4><?php echo lang('escort_extrasoption_add_extrasoption')?></h4>
		</section>
		<form id="add-extrasoption-form" action="">
			<input type="hidden" name="extrasoption-edit" id="extrasoption-edit" value="" />
			<section class="item">
		<?php
		if($languageList){ 
		?>
				<input type="hidden" name="extrasoption_code" id="extrasoption-code" value="" />
				<div class="tabs">
					<ul class="tab-menu">
					<?php
						foreach ($languageList as $language) {
					?>
						<li><a href="#language-<?php echo $language->id?>-tab"><span><?php echo $language->language?></span></a></li>
					<?php
						} 
					?>
					</ul>
					<?php
						foreach ($languageList as $language) {
					?>
						<div class="form_inputs" id="language-<?php echo $language->id?>-tab">
							<fieldset>
								<ul>
									<li class="even">
										<label for="first_name"><?php echo lang('escort_extrasoption_name')?><span>*</span></label>
										<div class="input">
											<input type="hidden" value="" name="extrasoption_id[<?php echo $language->id?>]" id="extrasoption_id"/>
											<input class="required" type="text" id="extrasoption" value="" name="extrasoption[<?php echo $language->id?>]">
										</div>
									</li>
								</ul>
							</fieldset>
						</div>
					<?php
						} 
					?>
					
				</div>
				<div>
					<?php echo form_button(array('id'=>'save-extrasoption', 'onClick'=>'saveExtrasoption()','name'=>'add', 'class'=>'btn blue', 'value'=>lang('escort_extrasoption_save'), 'content'=>lang('escort_extrasoption_save')))?>
					<?php echo form_button(array('id'=>'cancel-extrasoption', 'name'=>'add', 'class'=>'btn blue modalCloseImg simplemodal-close', 'value'=>lang('escort_extrasoption_cancel'), 'content'=>lang('escort_extrasoption_cancel')))?>
				</div>
		<?php
		} 
		?>
			</section>
		</form>
	</div>
</div>
